/*
 * @Author: zhangguowei 974599791@qq.com
 * @Date: 2022-08-23 11:48:43
 * @LastEditors: zhangguowei 974599791@qq.com
 * @LastEditTime: 2022-09-27 10:43:16
 */
import { createApp } from "vue";
import App from "./App.vue";
import "./assets/css/index.css";
import ElementPlus from "element-plus";
import "element-plus/dist/index.css";
import router from "./route";
import "./assets/tailwindcss.css";
import { store } from "@/store";
// 统一导入 element 图标
import * as Icons from "@element-plus/icons-vue";
// 创建app实例
export const app = createApp(App);
// 注册全局 element-icons 组件
Object.keys(Icons).forEach((key) => {
  app.component(key, Icons[key as keyof typeof Icons]);
});
app.use(ElementPlus);
app.use(router);
app.use(store);

// 挂载app
app.mount("#app");
